package io.github.starwishsama.comet.objects.pojo

data class PicSearchResult(val picUrl: String, val originalUrl: String, val similarity: Double, val title: String, val author: String, val uid: String) {
    companion object {
        fun emptyResult(): PicSearchResult {
            return PicSearchResult("", "", -1.0, "", "", "")
        }
    }

    fun isNotEmpty(): Boolean {
        return picUrl.isNotEmpty() || originalUrl.isNotEmpty()
    }
}

data class Ascii2dPicSearchResult(val colorUrl: String, val colorOrig: String, val colorUsers: String, val bovwUrl: String, val bovwOrig: String, val bovwUsers: String) {
    companion object {
        fun emptyResult(): Ascii2dPicSearchResult {
            return Ascii2dPicSearchResult("", "", "", "", "", "")
        }
    }

    fun isNotEmpty(): Boolean {
        return colorUrl.isNotEmpty() || bovwUrl.isNotEmpty()
    }
}